package com.just.sxmiaosha.service;

import com.just.sxmiaosha.entity.StockOrder;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author just
 * @since 2020-09-23
 */
public interface StockOrderService  {

    String createWrongOrder(int sid,int count);

    String createOptimisticOrder(int sid, int count);

    String createPessimisticOrder(int sid,int count);

    String getVerifyHash(int sid, int count, int userId);

    String createVerifiedOrder(int sid, int count, int userId, String verifyHash);

    String createOrderWithVerifiedUrlAndLimit(int sid, int count, int userId, String verifyHash);

    String createOrderWithCacheV1(int sid, int count);

    String createOrderWithCacheV2(int sid, int count);

    String createOrderWithCacheV3(int sid, int count);

    String createOrderWithMq(int sid, int count);
}
